import { createI18n } from "vue-i18n";
import zh from "./zh";
import en from "./en";
// 越南
import vi from "./vi";
import bm from "./bm";
import lao from "./lao";
import ru from "./ru";
import sp from './sp'
import th from "./th";

// 可优化点: 使用cookie存储用户选择的语言，第二次进来读取cookie
const i18n = createI18n({
  locale: "en", // 定义默认语言为中文
  legacy: false,
  globalInjection: true,
  messages: {
    zh,
    en,
    vi,
    bm,
    lao,
    ru,
    sp,
    th
  },
});
export default i18n;